/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DataStructures;

import java.util.ArrayList;

/**
 *
 * @author Manuel
 */
public class ProjectInformation {

    private String name;
    private String url;
    private String description;
    private int forge;
    private ArrayList<String> labels;
    private ArrayList<String> languages;
    private ArrayList<String> collaborators;
    private int activity;
    private ArrayList repositoryHistory;
    private int repositoryType;
    private int language;
    private int bugTracker;
    private ProjectPackage archieve;
    private String repositoryLink;

    public ProjectInformation(){
        labels = new ArrayList<String>();
        languages = new ArrayList<String>();
        collaborators = new ArrayList<String>();
        repositoryHistory = new ArrayList();
    }


    public void addCollaboratorIfNew(String c){
        if(!collaborators.contains(c)){
            collaborators.add(c);
        }
    }

    public void addLabel(String l){
        labels.add(l.toLowerCase());
    }

    public boolean isOfLanguage(String lang) {
        boolean result = false;
        for(int i = 0;i<this.languages.size();i++){
            if(languages.get(i).contains(lang)){
                result = true;
            }
        }
        return result;
    }

    public void addLanguage(String language) {
        this.languages.add(language.toLowerCase());
    }

    public int getActivity() {
        return activity;
    }

    public void setActivity(int activity) {
        this.activity = activity;
    }

    public int getBugTracker() {
        return bugTracker;
    }

    public void setBugTracker(int bugTracker) {
        this.bugTracker = bugTracker;
    }

    public int getForge() {
        return forge;
    }

    public void setForge(int forge) {
        this.forge = forge;
    }

    public int getRepositoryType() {
        return repositoryType;
    }

    public void setRepositoryType(int repositoryType) {
        this.repositoryType = repositoryType;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ProjectPackage getArchieveLink() {
        return archieve;
    }

    public void setArchieveLink(ProjectPackage archieveLink) {
        this.archieve = archieveLink;
    }

    public String getRepositoryLink() {
        return repositoryLink;
    }

    public void setRepositoryLink(String repositoryLink) {
        this.repositoryLink = repositoryLink;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }





}
